<?php
/**
 * 任务管理
 */

class FileAction extends BaseAction
{
    /**
     * 构造函数
     */
    public function __construct()
    {
        parent::__construct();
    }

    public function fileUpload(){

        $verifyToken = md5('unique_salt' . $_POST['timestamp']);

        if (!empty($_FILES) && $_POST['token'] == $verifyToken) {

            $result = $this->upload($_FILES['Filedata']);
            echo json_encode($result);
            //var_dump($result);

        }

    }

}


?>
